package org.jeecg.modules.business.service;

import org.jeecg.common.api.vo.Result;
import org.jeecg.modules.business.dto.UserGroupDto;
import org.jeecg.modules.business.dto.UserLabelDto;
import org.jeecg.modules.business.entity.BusMarketMember;
import org.jeecg.modules.business.entity.BusMemberBalanceLog;
import org.jeecg.modules.business.entity.BusMemberCard;
import com.baomidou.mybatisplus.extension.service.IService;
import org.jeecg.modules.business.vo.MemberCardStatVo;

import java.math.BigDecimal;

/**
 * @Description: bus_member_card
 * @Author: jeecg-boot
 * @Date:   2023-03-10
 * @Version: V1.0
 */
public interface IBusMemberCardService extends IService<BusMemberCard> {
    /**
     * 设置用户分组
     * @param dto
     * @return
     */
    public Result groupBatch(UserGroupDto dto);

    /**
     * 设置用户标签
     * @param dto
     * @return
     */
    public Result lableBatch(UserLabelDto dto);

    /**
     * 统计
     * @return
     */
    public MemberCardStatVo stat(String hotelId);

    /**
     * 会员卡支付
     * @param busMemberCard
     * @param money
     * @param feeId
     * @param hotelId
     * @return
     */
    public BusMemberBalanceLog cardPayFee(BusMemberCard busMemberCard, BigDecimal money, String feeId, String hotelId);

    BusMarketMember getMarkerMemberByCarId(String id);
}
